package com.ruoyi.business.projectTosView.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.business.projectRecord.domain.ProjectRecord;
import com.ruoyi.business.projectTosView.domain.VProjectTos;
import com.ruoyi.business.projectTosView.domain.params.VProjectTosQueryParams;

import java.util.List;

/**
 * @author 80661
 * @description 针对表【V_PROJECT_TOS】的数据库操作Service
 * @createDate 2023-07-04 09:12:51
 */
public interface VProjectTosService extends IService<VProjectTos> {
	
	/**
	 * 获取VProjectTos By params
	 *
	 * @param vProjectTos
	 * @return
	 */
	List<VProjectTos> listByParams(VProjectTosQueryParams vProjectTos);
	
	/**
	 * 固化tosProjectRecord、绑定合同（若合同不存在，则不固化）
	 *
	 * @param tosProjectView
	 * @return
	 */
	ProjectRecord saveRecordAndBindContractForTosProjectView(VProjectTos tosProjectView);
	
	void unBindContract(VProjectTos tosProjectView);
	
}
